package com.example.demo.model;

import lombok.Data;

@Data
public class PageRequest {
    private Integer pageNum = 1;
    private Integer limit = 10;
    private Integer offset;

    public Integer getOffset() {
        return (pageNum - 1) * limit;
    }
}
